// 
// @Auther: by wujehy
// @Email:wujehy@qq.com
// @Data:2021/2/17.
// @Time:下午1:48.
// 
//

#ifndef FLUTTER_FFI_SDK_TESTAPP_H
#define FLUTTER_FFI_SDK_TESTAPP_H

#include "Base.h"
#include "BaseDartAPI.h"
// 测试数据结构
struct RequestDataType
{
    bool status;
    int taskid;
    int type;
    std::string token;
    std::string data;
};
struct ResponseDataType
{
    int code;
    bool status;
    int taskid;
    int type;
    std::string token;
    std::string data;
};
// 简单的同步异步的区别
APICORE void TestFunc_Sync(Dart_Port callbackPort, int time);
APICORE void TestFunc_Async(Dart_Port callbackPort, int time );
// 自定义结构的返回 , 异步一秒后回调 , 不阻塞ui
APICORE void TestFunc_Customize(Dart_Port callbackPort, int code , const char *msg , int value1_bool , int value2_int32 , const char* value3_strData , const char* value4_bytes_data , int value4_bytes_data_len );





#endif //FLUTTER_FFI_SDK_TESTAPP_H
